package com.example.thread.demo.reorder;

/**
 * Created by Administrator on 2020/07/14 0014.
 */
public class ReorderExampleApplication {

    public static void main(String[] args) {
        ReorderExample reorderExample = new ReorderExample();
        Thread t1 = new Thread(new Runnable() {
            @Override
            public void run() {
                reorderExample.writer();
            }
        });
        Thread t2 = new Thread(new Runnable() {
            @Override
            public void run() {
                reorderExample.reader();
            }
        });
        t1.start();
        t2.start();
    }
}
